{extend name="Layout/edit" /}
{block name="content"}
<!-- form start -->
<form action="{:U('testSave')}" method="post" class="form-horizontal">
    <div class="box-body">
        <div class="form-group">
            <label class="col-sm-2 control-label">标题</label>
            <div class="col-sm-10">
                <input type="text" name="subject" class="form-control input-sm" placeholder="标题" value="这是一封测试邮件" required="required" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">收件人</label>                        
            <div class="col-sm-10">
                <input type="text" name="to_address" class="form-control input-sm" placeholder="收件人" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">内容</label>
            <div class="col-sm-10">
                <textarea name="body" class="form-control input-sm" placeholder="内容">您收到了这封测试邮件，说明邮件服务器设置有效!</textarea>
            </div>
        </div>
    </div>
    <!-- /.box-body -->
    <div class="box-footer">
        <button type="button" class="btn btn-default xsui-btn-close-dialog">取消</button>
        <button type="submit" class="btn btn-primary pull-right">立即发送</button>
        <input type="hidden" name="id" value="{$id}" />
    </div>
    <!-- /.box-footer -->
</form>
{/block}